﻿using OnHook.Business.IServices.Common;
using OnHook.Business.Vo.UserInfo;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;

namespace OnHook.Business.Extension
{
    /// <summary>
    /// 请求扩展方法
    /// </summary>
    public static class HttpContextExtension
    {
        public static LoginUserVo GetCurrentUser(this IHttpContextAccessor contextAccessor)
        {
            var token = contextAccessor.HttpContext?.Request.Headers["B"].ToString();
            var jwtService = contextAccessor.HttpContext?.RequestServices.GetService<IJwtService>();

            return null;
        }
    }
}
